package com.liukai.bishe.ui.activity.userInfo;

import androidx.appcompat.app.AppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.liukai.bishe.R;

public class ChangeInfoActivity extends AppCompatActivity {

    private String mTitle;
    private String mContent;
    private Unbinder mBind;

    private Context mContext = ChangeInfoActivity.this;

    @BindView(R.id.title)
    public TextView tvTitle;

    @BindView(R.id.btnSave)
    public TextView btnSave;

    @BindView(R.id.btnBack)
    public ImageView btnBack;

    @BindView(R.id.content)
    public EditText evContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change_info);

        mBind = ButterKnife.bind(this);
        initDate();
        initListener();

    }

    private void initListener() {
        //123.56.55.101
    }

    private void initDate() {

        Intent intent = getIntent();
        mTitle = intent.getStringExtra("title");
        mContent = intent.getStringExtra("content");

        tvTitle.setText(mTitle);
        evContent.setText(mContent);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (mBind != null) {
            mBind = null;
        }
    }
}
